#!/bin/bash
let sum=0
echo $#
while [ $1 ]
do
let num1=$1
let sum=num1+sum
shift
done
echo $sum
